repo: Fix non-system remotes-config-dir usage
authorDan Nicholson <nicholson@endlessm.com>
Thu, 7 Sep 2017 19:02:51 +0000 (14:02 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 8 Sep 2017 13:54:30 +0000 (13:54 +0000)
commit43c78c90066d855ce44409f5a960385dc60577f4
treef4c090de31c184ae7af9516dc8fec9383c32ab44
parent2a7fdfdbc578eb704476f0fa734eff55864e74f2
repo: Fix non-system remotes-config-dir usage

Before commit e0346c1, a non-system repo could specify
remotes-config-dir and have remotes read from there. However, adding
remotes would only be done in the config dir for a system repo. Restore
that by respecting remotes-config-dir when no sysroot is found and
adding back the ostree_repo_is_system() check when adding remotes.

Closes: #1133
Closes: #1151
Approved by: cgwalters
Makefile-tests.am
src/libostree/ostree-repo.c
tests/test-remotes-config-dir.js [new file with mode: 0755]